#ifndef __GAME_UTIL_H__
#define __GAME_UTIL_H__

#include "game_config.h"
#include "game_def.h"
#include "stddef.h"
#include <time.h>

size_t __get_uuid(char * dest,BOOL sep);
size_t __get_uuid(char * dest);


size_t __gmtime_add(time_t add,char *dest);

/**
 * @brief 获取GMT时间
 *
 */
size_t __gmtime_format(char *dest);

/**
 * @brief 获取GMT时间
 *
 */
size_t __gmtime_format(char *dest ,const char *format);

/**
 * @brief 获取GMT时间
 *
 */
size_t __gmtime_format(time_t t,char *dest ,const char *format);

size_t __localtime_format(char *dest);
size_t __localtime_format(char *dest ,const char *format);
size_t __localtime_format(time_t t,char *dest ,const char *format);

/**
 * @brief 获取当前系统时间，以毫秒为单位
 *
 * @return mseconds_t
 */
mseconds_t __get_time_ms();

#endif
